# Maintainer: Peter Shkenev <santurysim@gmail.com>
pkgname=s6-rc-man-pages
pkgver=0.5.4.3.1
pkgrel=0
pkgdesc="Unofficial mdoc versions of the s6-rc documentation"
url="https://git.sr.ht/~flexibeast/s6-rc-man-pages"
arch="noarch"
license="ISC"
source="$pkgname-$pkgver.tar.gz::https://git.sr.ht/~flexibeast/s6-rc-man-pages/archive/v$pkgver.tar.gz"
builddir="$srcdir/$pkgname-v$pkgver"
options="!check" # no tests
install_if="${pkgname%-*-*}>=${pkgver%.*} docs"

package() {
	make DESTDIR="$pkgdir" install

	find "$pkgdir" -type f ! -name "*.gz" \
		-exec gzip -9 {} \;
}

sha512sums="
a613c6424ac07baba6112eab5894224ddc4bdce726e02c47363fc1654f4ff163792c24587c98e412c6660b2a65dade3fce54eb0402f33080bed1c2a4f0cdd73b  s6-rc-man-pages-0.5.4.3.1.tar.gz
"
